
	<script language="JavaScript">
		function opt_hisReview(){
			<#if reviewList?exists && reviewList?size gt 0 > 
			art.dialog({
			      	title: '审核记录',
			      	content: document.getElementById('reviewHistory'),
			      	width:'70%',
			      	height:'70%',
			      	lock: true,
			      	ok: function(){
			      	},
			      	cancel: false
			      });
			<#else>
			art.dialog({
			    title: '审核记录',
			    content: "暂无审核记录！",
			    lock: true,
			    ok: function(){
			    },
			    cancel:false
			});
			</#if>
		}
		//
		function opt_hisRecord(){
			<#if historyList?exists && historyList?size gt 0 > 
			art.dialog({
			      	title: '流转历史',
			      	content: document.getElementById('recordHistory'),
			      	width:'70%',
			      	height:'70%',
			      	lock: true,
			      	ok: function(){
			      	},
			      	cancel: false
			      });
			<#else>
			art.dialog({
			    title: '流转历史',
			    content: "暂无流转历史！",
			    lock: true,
			    ok: function(){
			    },
			    cancel:false
			});
			</#if>
		}
		//
		function opt_coOperation(){
			<#if weekCoOperationList?exists && weekCoOperationList?size gt 0 > 
			art.dialog({
			      	title: '协办意见',
			      	content: document.getElementById('coOperation'),
			      	width:'70%',
			      	height:'70%',
			      	lock: true,
			      	ok: function(){
			      	},
			      	cancel: false
			      });
			<#else>
			art.dialog({
			    title: '协办意见',
			    content: "该事项无协办单位！",
			    lock: true,
			    ok: function(){
			    },
			    cancel:false
			});
			</#if>
		}
	</script>


<!--===============流转历史start======================-->
	<div id="recordHistory" class="pad" style="height:500px;display:none;overflow-x:hidden;overflow-y:auto" >		
		<#if historyList?exists && historyList?size gt 0 > 
		<table class="tbl">
			<caption>流转历史</caption>
			<!-- 数据录入 -->
			<tbody>
				<tr>
					<td class="empty" style="padding:0; border:0;" width="5%"></td>
					<td class="empty" style="padding:0; border:0;" width="10%"></td>
					<td class="empty" style="padding:0; border:0;" width="30%"></td>
					<td class="empty" style="padding:0; border:0;" width="20%"></td>
					<#-- <td class="empty" style="padding:0; border:0;" width="10%"></td> -->
					<td class="empty" style="padding:0; border:0;" width="10%"></td>
				</tr>
				<tr>
					<td align="center">序号</td>
					<td align="center">单位名称</td>
					<td align="center">完成情况</td>
					<td align="center">附件</td>
					<#-- <td	align="center">打开时间</td> -->
					<td align="center">完成时间</td>	
				</tr>			
				<#list historyList as review>
			 	<tr>	
					<td align="center">${((review.num)?if_exists)?html}</td>
					<td align="center">${((review.createUnit)?if_exists)?html}</td>
					<td align="center">${((review.title)?if_exists)?html}</td>
					<td align="center" >
						<div id="${(review.docDataId)?if_exists}a" class="uploadstyle" style="text-align:left;"></div>
						<script type="text/javascript">
							$(document).ready(function(){
								var $attach=$("#${(review.docDataId)?if_exists}a");
								// 生成供下载的附件及上传功能
								var isShowed=$attach.attr("isShowed");
								if(isEmpty(isShowed) || isShowed!="true"){
									$attach.showAttachment("WEEK_RECORD",${(review.docDataId)?if_exists},{type:""});
									$attach.attr("isShowed","false");
								}
							});
						</script>
					</td>
					<#-- <td align="center">${((review.reviewTime)?if_exists)?html}</td> -->
					<td align="center">${((review.finishTime)?if_exists)?html}</td>	
					</tr>
			 	</#list>
			</tbody>
		</table>
		</#if>
	</div>
<!--===============流转历史end=================-->

<!--===============协办意见start===============-->
	<div id="coOperation" class="pad" style="height:500px;display:none;overflow-x:hidden;overflow-y:auto" >		
		<#if weekCoOperationList?exists  && weekCoOperationList?size gt 0 > 
		<table class="tbl">
			<caption>协办单位意见</caption>
			<!-- 数据录入 -->
			<tbody>
				<tr>
					<td  class="empty" style="padding:0; border:0;" width="20%"></td>
					<td  class="empty" style="padding:0; border:0;" width="20%"></td>
					<td  class="empty" style="padding:0; border:0;" width="10%"></td>
					<td  class="empty" style="padding:0; border:0;" width="10%"></td>
					<td  class="empty" style="padding:0; border:0;" width="10%"></td>
				</tr>
				<tr>
					<td align="center">协办单位</td>
					<td align="center">协办意见</td>
					<td align="center">附件</td>
					<td	align="center">完成人</td>
					<td align="center">完成时间</td>	
				</tr>	
				<#list weekCoOperationList as review>
			 	<tr>	
					<td align="center">${((review.deptId.name)?if_exists)?html}</td>
					<td align="center">${((review.opinion)?if_exists)?html}</td>
					<td align="center" >
						<div id="${(review.docDataId)?if_exists}c" class="uploadstyle" style="text-align:left;"></div>
						<script type="text/javascript">
							$(document).ready(function(){
								var $attach=$("#${(review.docDataId)?if_exists}c");
								// 生成供下载的附件及上传功能
								var isShowed=$attach.attr("isShowed");
								if(isEmpty(isShowed) || isShowed!="true"){
									$attach.showAttachment("WEEK_RECORD",${(review.docDataId)?if_exists},{type:""});
									$attach.attr("isShowed","false");
								}
							});
						</script>
					</td>
					<td align="center">${((review.finishBy.userName)?if_exists)?html}</td>
					<td align="center">${((review.finishTime)?if_exists)?html}</td>	
				</tr>
			 </#list>
			</tbody>
		</table>
		</#if>
	</div>
<!--====================协办意见end=========================-->

<!--===============审核记录start===============-->
	<div id="reviewHistory" class="pad" style="height:500px;display:none;overflow-x:hidden;overflow-y:auto" >		
		<#if reviewList?exists && reviewList?size gt 0  > 
		<table class="tbl">
			<caption>审核记录</caption>
			<!-- 数据录入 -->
			<tbody>
				<tr>
					<td class="empty" style="padding:0; border:0;" width="10%"></td>
					<td class="empty" style="padding:0; border:0;" width="13%"></td>
					<td class="empty" style="padding:0; border:0;" width="10%"></td>
					<td class="empty" style="padding:0; border:0;" width="13%"></td>
					<td class="empty" style="padding:0; border:0;" width="10%"></td>
					<td class="empty" style="padding:0; border:0;" width="13%"></td>
					<td class="empty" style="padding:0; border:0;" width="10%"></td>
					<td class="empty" style="padding:0; border:0;" width="21%"></td>
				</tr>
		        <#list reviewList as review>
		        	<@pEdit.pageEditSelectUserValue
						label="审核类型"
						pageState=""
						endTR="false"
						attName="review.applyType"
						attValue="${(review.applyType)?if_exists}"
						colSpanNum="1"
						optionSource={"1":"重办申请","2":"申请延期","3":"申请拒办","4":"主办退回申请审核","31":"拒办审核中"}
						/>
					<@pEdit.pageEditText
						label="审核人"
						pageState=""
						beginTR="false"
						endTR="false"
						attName="review.reviewBy.userName"
						attValue="${(review.reviewBy.userName)?if_exists}"
						colSpanNum="1"
						/>
					<@pEdit.pageEditSelectUserValue
						label="审核结果"
						colSpanNum="1"
						beginTR="false"
						endTR="false"
						colSpanNum="1"
						pageState=""
						attName="review.status"
						attValue="${(review.status)?if_exists}"
						optionSource={"-1":"不同意","1":"同意"}
						defaultValue="1"
						/>	
					<@pEdit.pageEditText
						label="审核时间"
						colSpanNum="1"
						beginTR="false"
						endTR="true"
						pageState=""
						attName="review.reviewTime"
						attValue="${(review.reviewTime)?if_exists}"
						/>	
					<@pEdit.pageEditText
						beginTR = "true"
						endTR = "true"
						label="审核意见"
						inputReadOnly="true"
						pageState="${editState}"
						attName="review.reviewOpinion"
						attValue="${(review.reviewOpinion)?if_exists}"
						colSpanNum="8"/>
		        </#list>
	        </tbody>
		</table>
        </#if>
    </div>	
<!--===============审核记录end===============-->